import 'package:dio/dio.dart';

import '../util/http_util.dart';

class WorkOrderApi {
  static Future<Response> getWaitAssignWorkOrderNoList(dynamic data) {
    return HttpUtil.getDio().post(
        "/liveStaff/workordersearch/search_wait_assign_work_order_no_list",
        data: data);
  }

  static Future<Response> getWorkOrderList(dynamic data) {
    return HttpUtil.getDio()
        .post("/liveStaff/workorder/work_order_detail_list", data: data);
  }

  static Future<Response> getOrderDetail(dynamic data) {
    return HttpUtil.getDio()
        .post("/liveStaff/workorder/work_order_detail", data: data);
  }

  static Future<Response> getOrderGoodsSampleList(dynamic data) {
    return HttpUtil.getDio()
        .post("/liveStaff/workorder/work_order_goods_sample_list", data: data);
  }

  static Future<Response> updateAssignStaffUer(dynamic data) {
    return HttpUtil.getDio()
        .post("/liveStaff/workorder/update_assign_staff_user", data: data);
  }

  static Future<Response> searchWorkOrderNoList(dynamic data) {
    return HttpUtil.getDio().post(
        "/liveStaff/workordersearch/search_common_work_order_no_list",
        data: data);
  }

  static Future<Response> workOrderAuditNoList(dynamic data) {
    return HttpUtil.getDio().post(
        "/liveStaff/workordersearch/search_audit_work_order_no_list",
        data: data);
  }

  static Future<Response> workOrderCheckNoList(dynamic data) {
    return HttpUtil.getDio().post(
        "/liveStaff/workordersearch/search_check_up_work_order_no_list",
        data: data);
  }

}
